package com.bluestarenergy.party.sample.domain;
import java.util.Date;

/**
 * It allows parties to be related to other parties and maintains their respective
 * roles in the relationship
 * @version 1.0
 * @created 01-Sep-2006 1:42:34 PM
 */
public class PartyRelationship extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Date fromDate;
	private Date thruDate;
	private PartyRelationshipType relationshipType;
	private PartyRole toRole;
	private PartyRole fromRole;

	public PartyRelationship(){

	}

	public Date getFromDate(){
		return fromDate;
	}

	public PartyRole getFromRole(){
		return fromRole;
	}

	public PartyRelationshipType getRelationshipType(){
		return relationshipType;
	}

	public Date getThruDate(){
		return thruDate;
	}

	public PartyRole getToRole(){
		return toRole;
	}

	/**
	 * 
	 * @param newVal
	 */
	public void setFromDate(Date newVal){
		fromDate = newVal;
	}

	/**
	 * 
	 * @param newVal
	 */
	public void setFromRole(PartyRole newVal){
		fromRole = newVal;
	}

	/**
	 * 
	 * @param newVal
	 */
	public void setRelationshipType(PartyRelationshipType newVal){
		relationshipType = newVal;
	}

	/**
	 * 
	 * @param newVal
	 */
	public void setThruDate(Date newVal){
		thruDate = newVal;
	}

	/**
	 * 
	 * @param newVal
	 */
	public void setToRole(PartyRole newVal){
		toRole = newVal;
	}

}